package cn.rkylin.oms.warehouseDocking.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.rkylin.oms.warehouseDocking.dao.IStorDAO;
import cn.rkylin.oms.warehouseDocking.domain.Stor;

/**
 * 仓库服务层
 * 
 * @author jipengcheng
 * @created 2017年10月17日
 */
@Service("storService")
public class StorService {
    @Autowired
    IStorDAO iStorDAO;

    /**
     * 根据PrjId, 获取仓库信息
     * 
     * @param reqMap
     * @return
     */
    public List<Stor> selectInfoStorByPrjId(Map<String, Object> reqMap) throws Exception {
        return iStorDAO.selectInfoStorByPrjId(reqMap);
    }

    public Stor selectStorById(String storId) throws Exception {
        return iStorDAO.selectStorInfo(storId);
    }
    
    public String queryReturnStorId(String storId,String shopId,String prjId) throws Exception{
        return iStorDAO.selectReturnStorId(storId,shopId,prjId);
    }
}
